<?php

namespace app\admin\service\admin;

use app\admin\model\admin\AdminRole;
use app\admin\service\BaseService;

class RoleService extends BaseService
{
    public function __construct(AdminRole $model)
    {
        $this->model = $model;
    }

    public function getAdminRoleInfo($id)
    {
        return $this->model->find($id);
    }

    public function getRoleList(): array
    {
        return $this->model->where('status',1)->select()->toArray();
    }

}